package day18.Junit_reflect_annotation_proxy.proxydemo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Star implements Star_Aciton
{
   private String name;
    @Override
    public void sing(String name)
    {
        System.out.println("sing方法的调用");
        System.out.println(this.name + "给你唱" + name + "这首歌");
    }
    @Override
    public String dance(String name)
    {
        System.out.println("dance方法的调用");
        System.out.println(this.name + "给你跳了" + name + "这个舞");
        return "回你了个谢谢";
    }
}
